SAP List Viewer (ALV) by Kathi Kones

SAP List Viewer (ALV) by Kathi Kones

Author:Kathi Kones [Kones, Kathi]
Language: eng
Format: azw3
Published: 2015-12-04T16:00:00+00:00


First, the validation logic. Add this code for p_vari (Figure 6.45) to your program, after the empty initialization event and before the start-of-selection event. If you wish, you can create and call a subroutine containing this logic rather than coding it directly in the at selection screen event.

Figure 6.45: Validation logic for the layout parameter (FM, CF)

If the user has proposed an alternate layout using the p_vari parameter, pass the report name and the variant name to SAP function module reuse_alv_variant_existence (Figure 6.45). If the parameter value is found, the return code (sy-subrc) is 0 and no further action is taken. If the parameter value is not found, you want to display a status line message informing the user that the layout variant was not found. (Remember to add text symbols for custom messages by double-clicking on the message text and using forward navigation to save and activate them.)

Next, the input help (F4 function key). Following the validation logic you just added, add the code shown in Figure 6.46.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.